package com.atguigu.eduservice.client;

import com.atguigu.commonutils.vo.CommMemberVo;
import com.atguigu.eduservice.client.impl.UcenterFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="service-ucenter",fallback = UcenterFeignClient.class)
@Component
public interface UcenterClient {

    //远程调用，nacos and feign
    //这里是全路径
    @PostMapping("/ucenter/member/getCommMemberInfo")
    public CommMemberVo getCommMemberInfo(@RequestParam("memberId") String memberId);

}
